package com.sktk.keepAccount.exception;

import com.sktk.keepAccount.common.core.exception.ErrorType;
import lombok.Getter;

@Getter
public enum CustomerSystemErrorType implements ErrorType {

    ERROR_NOT_TOURIST("10001", "非游客，无需短信登录"),
    ERROR_VERIFY_CODE("10002", "验证码错误"),
    ERROR_WECHAT_CODE("10003", "微信授权码错误"),
    ERROR_CUSTOMER_NOT_VALID("10004", "登录后才可提现"),
    ERROR_NOT_BIND_WECHAT("10005", "用户未绑定微信"),
    ERROR_MOBILE_REPEAT("10006", "手机号已经注册过"),
    ERROR_WECHAT_WITHDRAW("10007", "提现失败"),
    ERROR_REPEAT_WITHDRAW("10008", "您已提现过此金额，不可重复操作"),
    ERROR_WITHDRAW_ERROR_CONTACT("10009", "提现失败，请联系客服"),
    ERROR_TIME("10010", "操作频繁，请稍后再试"),
    ERROR_DEL_CATEGORY_EXIST_RECORD("10011", "删除类别会同时删除该类别下的所有记账");

    /**
     * 错误类型码
     */
    private String code;

    /**
     * 错误类型描述信息
     */
    private String msg;

    CustomerSystemErrorType(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
